package com.cgwx.mapper;

import com.cgwx.entity.File;
import com.cgwx.entity.FileFolder;
import com.cgwx.entity.Folder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FileMapper{
    List<File> getAllFile();

    List<File> getFile(File file);

    List<File> getAllPersonalFiles(File file);

    List<File> getAllFileByRoomId(String roomId);

    List<FileFolder> getFileFolder(FileFolder fileFolder);

    List<FileFolder> getFileFolderBase(FileFolder fileFolder);

    List<FileFolder> getAuthorityFileFolder(FileFolder fileFolder);

    List<FileFolder> getAuthorityFileFolderGlobal(FileFolder fileFolder);

    List<FileFolder> getFileFolderGlobal(FileFolder fileFolder);

    List<FileFolder> getAuthorityFileFolder1(@Param("fileFolder") FileFolder fileFolder);

    List<FileFolder> getAuthorityFileFolder0(@Param("fileFolder") FileFolder fileFolder);

    boolean deleteFileById(String entityId);

    boolean updateFileById(File file);

    boolean insertFile(File file);
}